local skynet = require "skynet"
local socket = require "skynet.socket"
local  CMD = {}
function CMD.ping() 
    skynet.retpack("pong")
end

skynet.start(function() 
    skynet.dispatch("lua", function(session,source, cmd, ...)
        local func = assert(CMD[cmd])
        func(...)
    end)
end)